#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

KERNEL_VER=`uname -r`

modprobe 8021q
modprobe pppoe
modprobe tun
modprobe usbserial vendor=0x05c6 product=0x9025
#modprobe option

ifconfig eth0 up
brctl addbr br0
brctl addif br0 eth0
ifconfig br0 up

#ifconfig br0:0 192.168.8.2

#insmod /lib/modules/$KERNEL_VER/kernel/drivers/usb/serial/usbserial.ko
#insmod /lib/modules/$KERNEL_VER/kernel/drivers/usb/serial/usb_wwan.ko
#insmod /lib/modules/$KERNEL_VER/kernel/drivers/usb/serial/option.ko

#echo "12d1 15c0" > /sys/bus/usb-serial/drivers/option1/new_id

#insmod /home/debian/trunk/8086/8086-arm-new.ko

ebtables -A FORWARD -p 0x8086 -j DROP


/root/trunk/wvdial.sh &

#/home/debian/H16MUP/trunk/main/main &

echo /var/log/coredump/core.%e.%p.%t > /proc/sys/kernel/core_pattern

vconfig add eth0 4093
ifconfig eth0.4093 191.191.191.191

vconfig add eth0 4091
ifconfig eth0.4091 up
ifconfig eth0.4091:0 192.192.168.168

exit 0
